package com.zut.questionnaire.pojo;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

@Getter
@Setter
@Entity
public class Question implements Serializable {

    @Id
    private String id;

    private Integer number;  //题目序号

    private String type;  //题目类型

    private String topic; //题干

    private String options; //选项 如果是填空题则为空

    private String questionnaireId;

    @Override
    public String toString() {
        return "Question{" +
                "id='" + id + '\'' +
                ", number=" + number +
                ", type='" + type + '\'' +
                ", topic='" + topic + '\'' +
                ", options='" + options + '\'' +
                ", questionnaireId='" + questionnaireId + '\'' +
                '}';
    }
}